﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterBody.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Besture.UI.Index" %>
<%@ Import Namespace="Besture.Utils" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">

    <div class="banner">
    	<div class="bannerslide">
			<div class="slides_container">
            <asp:Repeater ID="rpBanner" runat="server"><ItemTemplate>
				<div class="page" style="background:url(/Upload/Images/Home/<%#Eval("ImageUrl")%>) no-repeat center"><!--<img src="images/banner.jpg" width="1200"/>-->
					<div class="w980" style="position:relative">                
                        <div class="ban-div">
                            <p class="ban-div1"><a target="_blank" href="<%#Eval("ImageLink")%>"><%#Eval("Title")%></a></p>
                            <p><a target="_blank" href="<%#Eval("ImageLink")%>"><%#Eval("Remark")%></a></p>
                        </div>
                    </div>
                </div>
                </ItemTemplate></asp:Repeater>
			</div>
            <div style="position:relative; bottom:40px; z-index:999">
                <table cellpadding="0" cellspacing="0" style="margin-left:auto; margin-right:auto;">
                  <tr>
                    <td>
                        <ul class="pagination">
                        <asp:Repeater ID="rbBannerTitle" runat="server"><ItemTemplate>
                            <li><a target="_blank" href="<%#Eval("ImageLink")%>"><%#Eval("Title")%></a></li></ItemTemplate></asp:Repeater>
                        </ul>
                    </td>
                  </tr>
                </table>
			</div>
		</div>
    </div>
    
	<div class="main">
		<div class="w980">
        	<div class="index-one">
            	<div class="index-onel">
                	<h2>公司活动<span>Events</span></h2>
                    <div class="index-onelq"><asp:Repeater ID="rpActivity" runat="server"><ItemTemplate>
                        <div class="index-onela">
                            <div class="index-onela1" style="background:url(/Upload/Images/News/<%#Eval("ImageUrl")%>) no-repeat;">
                                <div class="index-onela2">
                                    <%#Eval("KeyWords")%>
                                </div>
                            </div>
                            <div class="index-onels">
                                <p class="index-onels1"><a href="News/Activities.aspx?id=<%#Eval("ID")%>"><%#Eval("Title")%></a></p>
                                <p class="index-onels2"><%#StringUtil.GetDateStr(Eval("PubDate"))%></p>
                                <p class="index-onels3"><%#Eval("Summary")%></p>
                            </div>
                        </div></ItemTemplate></asp:Repeater>
                    </div>
                </div>
                <div class="index-oner clearfix">
                	<div class="index-onera">
                		<h2>新闻动态<span>NEWS</span></h2><asp:Repeater ID="rpNewsList" runat="server"><ItemTemplate>
                        <div class="index-onera1" style="background:url(/Upload/Images/News/<%#Eval("ImageUrl")%>) no-repeat;">
                            <div class="index-onera2">
                                <%#Eval("KeyWords")%>
                            </div>
                        </div>
                        <div class="index-onels">
                            <p class="index-onels1"><a href="News/Newdetail.aspx?id=<%#Eval("ID")%>"><%#Eval("Title")%></a></p>
                            <p class="index-onels2"><%#StringUtil.GetDateStr(Eval("PubDate"))%></p>
                            <p class="index-onels3"><%#Eval("Summary")%></p>
                        </div></ItemTemplate></asp:Repeater>
                    </div>
                </div>
            </div>
            
            <div class="index-two clearfix">
            	<div class="index-twol">
                	<ul class="index-tul clearfix">
                    	<li class="on">产品介绍</li>
                        <li>服务介绍</li>
                    </ul>
                    <div class="index-all">
                    	<div class="index-three">
                        <asp:Repeater ID="rpProductList" runat="server"><ItemTemplate>
                        	<div class="index-threea" name="ServiceProduct">
                            	<p class="index-threea1"><a href="Service/Products.aspx"><%#Eval("Name") %></a></p>
                                <p class="index-threea2" title="<%#Eval("ImageLink")%>"><%#Eval("ImageLink")%></p>
                                <p class="index-threea3" style="display:none;"><%#Eval("ImageRemark")%></p>
                                <a href="Service/Products.aspx" class="index-threea0" img="/Upload/Images/Service/<%#Eval("ImageUrl") %>"><img src="images/icon3.png" width="8"/></a>
                            </div>
                            </ItemTemplate></asp:Repeater>
                        </div>
                        <div class="index-three" style="display:none"><asp:Repeater ID="rpServiceList" runat="server"><ItemTemplate>
                        	<div class="index-threea" name="ServiceProduct">
                            	<p class="index-threea1"><a href="Service/Financial.aspx"><%#Eval("Name")%></a></p>
                                <p class="index-threea2" title="<%#Eval("ImageLink")%>"><%#Eval("ImageLink")%></p>
                                <p class="index-threea3" style="display:none;"><%#Eval("ImageRemark")%></p>
                                <a href="Service/Financial.aspx" class="index-threea0" img="/Upload/Images/Service/<%#Eval("ImageUrl") %>"><img src="images/icon3.png" width="8"/></a>
                            </div>
                            </ItemTemplate></asp:Repeater>
                        </div>
                    </div>
                </div>
                <div class="index-twor" id="ServiceProduct" style="background:url(images/index-img2.jpg) no-repeat;">
                	<div class="index-twora">
                    	<p class="index-twora1">信托产品</p>
                        <p class="index-twora2">恒君财富与多家信托公司保持良好的合作关系，可以为客户提供多种项目类型的信托产品，包括：政信合作、股权质押、房地产项目、工商企业贷款、矿业资产等。</p>
                    </div>
                    <a href="#" class="index-twors">查看在售产品及往期产品 <img src="images/icon4.png"/></a>
                </div>
            </div>
        </div>
	</div><!-- //main -->
    <input type="hidden" id="hidSelectIndex" value="0" />
    <script type="text/javascript">
        $(function () {
            // banner
            $(".bannerslide").slides({
                play: 5000,
                pause: 3000,
                generatePagination: false,
                generatePrevnext: false
            });

            DataLoad(0);

            $("[name=ServiceProduct]").click(function () {
                var indexs = $(this).index();
                DataLoad(indexs);
            });

            $(".index-tul li").click(function () {
                var index = $(this).index();
                $(this).addClass("on").siblings().removeClass("on");
                $(".index-all .index-three").eq(index).show().siblings().hide();
                if (index == 0) {
                    $("#hidSelectIndex").val(0);
                }
                else {
                    $("#hidSelectIndex").val(4);
                }
                DataLoad(0);
            });
        });

        function DataLoad(i) {
            var inp = parseInt($("#hidSelectIndex").val());
            inp = inp + i;
            var psl = $("[name=ServiceProduct]").eq(inp), nsl = $(".index-threea1 a", psl), ksl = $(".index-threea3", psl),iksl = $(".index-threea0", psl);
            $("#ServiceProduct .index-twora1").html(nsl.html());
            $("#ServiceProduct .index-twora2").html(ksl.html());
            $("#ServiceProduct .index-twors").attr("href", iksl.attr("href")).html("查看在售产品及往期产品 " + iksl.html());
            $("#ServiceProduct").css("background", "url(" + iksl.attr("img") + ") no-repeat");

        }
</script>
</asp:Content>
